// 自定义 Form.Item 样式
.custom-form-item {
  .ant-form-item-label {
    label {
      // 自定义 label 样式
      font-weight: 600;
      color: #1890ff;
      
      // 如果 label 包含必填标记
      .ant-form-item-required {
        color: #ff4d4f;
      }
    }
  }
  
  // 自定义输入框样式
  .ant-form-item-control {
    .ant-input,
    .ant-select-selector,
    .ant-input-password {
      border-radius: 8px;
      border: 1px solid #d9d9d9;
      transition: all 0.3s;
      
      &:hover,
      &:focus {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      }
    }
  }
}

// 自定义 Select 样式
.custom-select {
  .ant-select-selector {
    border-radius: 8px !important;
    border: 1px solid #d9d9d9 !important;
    transition: all 0.3s !important;
    
    &:hover,
    &:focus {
      border-color: #1890ff !important;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2) !important;
    }
  }
}

// 自定义 label 容器样式
.custom-label-container {
  display: flex;
  align-items: center;
  gap: 8px;
  
  .label-text {
    font-weight: 600;
    color: #262626;
  }
  
  .required-mark {
    color: #ff4d4f;
    font-weight: bold;
  }
  
  .badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    
    &.required {
      background-color: #fff2f0;
      color: #ff4d4f;
      border: 1px solid #ffccc7;
    }
    
    &.optional {
      background-color: #f6ffed;
      color: #52c41a;
      border: 1px solid #b7eb8f;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .custom-form-item {
    .ant-form-item-label {
      label {
        font-size: 14px;
      }
    }
  }
} 